package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 临停订单
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_hk_park_order")
public class HkParkOrder extends Model<HkParkOrder> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "order_log_id", type = IdType.NONE)
    private String orderLogId;
    /**
     * 停车唯一标识
     */
    @TableField("in_unid")
    private String inUnid;
    /**
     * 账单编号
     */
    @TableField("bill_code")
    private String billCode;
    /**
     * 熊猫泊车车牌颜色
     */
    @TableField("vehicle_color")
    private Integer vehicleColor;
    /**
     * 海康车牌颜色
     */
    @TableField("plate_color")
    private Integer plateColor;
    /**
     * 车辆进场时间
     */
    @TableField("enter_time")
    private Long enterTime;
    /**
     * 结算时间
     */
    @TableField("cost_time")
    private Long costTime;
    /**
     * 停车时长
     */
    @TableField("park_period_time")
    private Integer parkPeriodTime;
    /**
     * 总收费金额:账单总额
     */
    @TableField("total_cost")
    private Integer totalCost;
    /**
     * 优惠金额
     */
    @TableField("deduct_money")
    private Integer deductMoney;
    /**
     * 待支付金额:欠费金额
     */
    @TableField("pay_money")
    private Integer payMoney;
    /**
     * 欠费时间
     */
    @TableField("arrears_time")
    private Long arrearsTime;
    /**
     * 泊位编号
     */
    @TableField("berth_code")
    private String berthCode;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 支付状态:0未支付1支付成功2支付失败3已支付4取消支付
     */
    @TableField("pay_status")
    private Integer payStatus;
    /**
     * 支付时间
     */
    @TableField("pay_time")
    private LocalDateTime payTime;
    /**
     * 手机号
     */
    @TableField("phone")
    private String phone;
    /**
     * 业务ID
     */
    @TableField("bid")
    private String bid;
    /**
     * 订单类型:1:临停2欠费
     */
    @TableField("order_type")
    private Integer orderType;
    /**
     * 停车场
     */
    @TableField("park_id")
    private String parkId;
    /**
     * 车牌
     */
    @TableField("plate_number")
    private String plateNumber;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 支付方式: 1微信支付 2钱包支付
     */
    @TableField("pay_method")
    private Integer payMethod;
    /**
     * 钱包支付充值金额
     */
    @TableField("wallet_amount")
    private BigDecimal walletAmount;
    /**
     * 钱包支付赠送金额
     */
    @TableField("wallet_give_amount")
    private BigDecimal walletGiveAmount;
    /**
     * 停车场名称
     */
    @TableField("park_name")
    private String parkName;
    public void freeData() {
        this.orderLogId = null;
        this.inUnid = null;
        this.billCode = null;
        this.vehicleColor = null;
        this.plateColor = null;
        this.enterTime = null;
        this.costTime = null;
        this.parkPeriodTime = null;
        this.totalCost = null;
        this.deductMoney = null;
        this.payMoney = null;
        this.arrearsTime = null;
        this.berthCode = null;
        this.addTime = null;
        this.payStatus = null;
        this.payTime = null;
        this.phone = null;
        this.bid = null;
        this.orderType = null;
        this.parkId = null;
        this.plateNumber = null;
        this.userId = null;
        this.payMethod = null;
        this.walletAmount = null;
        this.walletGiveAmount = null;
        this.parkName = null;
    }
}